package com.example.everything_is_possible;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import androidx.appcompat.app.AppCompatActivity;

public class FenleiActivity extends AppCompatActivity {

    private Button mbtn_no1;
    private Button mbtn_no3;
    private Button mbtn_slide;

    private Button mbtn_allapps;
    private Button mbtn_dailyapps;
    private Button mbtn_foundapps;
    private Button mbtn_countapps;
    private Button mbtn_otherapps;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_fenlei);

        mbtn_no1 = findViewById(R.id.btn_no1);
        mbtn_no3 = findViewById(R.id.btn_no3);

        mbtn_no1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = null;
                intent = new Intent(FenleiActivity.this, HomeActivity.class);
                startActivity(intent);

            }
        });

        mbtn_no3.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = null;
                intent = new Intent(FenleiActivity.this, ZongheActivity.class);
                startActivity(intent);
            }
        });


        mbtn_slide = findViewById(R.id.btn_ex);

        mbtn_slide.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent();
                intent.setClass(FenleiActivity.this,Ex_layoutActivity.class);
                startActivity(intent);
                overridePendingTransition(R.anim.in_from_left,R.anim.out_to_left);
            }
        });


        mbtn_allapps = findViewById(R.id.all_apps);

        mbtn_allapps.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = null;
                intent = new Intent(FenleiActivity.this,SelectActivity.class);
                startActivity(intent);
            }
        });

        mbtn_dailyapps = findViewById(R.id.RiChang);

        mbtn_dailyapps.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = null;
                intent = new Intent(FenleiActivity.this,RiChangActivity.class);
                startActivity(intent);
            }
        });

        mbtn_foundapps = findViewById(R.id.found);

        mbtn_foundapps.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = null;
                intent = new Intent(FenleiActivity.this,FoundActivity.class);
                startActivity(intent);
            }
        });

        mbtn_countapps = findViewById(R.id.Jisuan);

        mbtn_countapps.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = null;
                intent = new Intent(FenleiActivity.this,JiSuanActivity.class);
                startActivity(intent);
            }
        });

        mbtn_otherapps = findViewById(R.id.Other);

        mbtn_otherapps.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = null;
                intent = new Intent(FenleiActivity.this,OtherActivity.class);
                startActivity(intent);
            }
        });
    }
}